<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'returnBook.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
body{
	font-size:13px;
}
div{
	width:980px;
	height:800px;
	
}
#show{
border-top:1px solid gray;
border-left:1px solid gray;
}
input{
width:120px;
}
select{
width:120px;
}
#show td{
margin:0px;
width:100px;
text-align:center;
border-right:1px solid gray;
border-bottom:1px solid gray;
}
#btn{
width:100px;
}
.bname{
width:350px;
}
</style>
  </head>
  <body>
  <div>
  <form action="jsp/book/bookreturncheck_list">
  <table id="cx">
   <tr>
  <td>借书编号:</td>
  <td><input type="text" name="oid"></td>
  <td>图书编号:</td>
   <td><input type="text" name="bid"></td>
  <td>图书名字:</td>
  <td><input type="text" name="bname"></td>
 <td>读者编号:</td>
  <td><input type="text" name="rid"></td>
  </tr>
    <tr>
  <td>读者名字:</td>
<td><input type="text" name="rname"></td>
  <td>逾 &nbsp; &nbsp;期:</td>
  <td><select name="outday">
  <option></option>
  <option value="true">是</option>
  <option value="false">否</option>
  </select></td>
  <td>借出时间:</td>
  <td><input type="text"  name="outtime" onclick="new Calendar().show(this);" readonly="readonly"></td>
  <td>&nbsp; &nbsp;至 &nbsp;</td>
  <td><input type="text"  name="endouttime" onclick="new Calendar().show(this);" readonly="readonly"></td>
  </tr>
  </table>
  <input type="submit" value="查询" id="btn"/>
  <table id="show">
  <thead>
  <tr>
  <td>借书编号</td>
  <td>图书编号</td>
  <td style="width:300px">图书名字</td>
  <td>读者编号</td>
  <td>读者姓名</td>
  <td>借出时间</td>
  <td>最晚归还时间</td>
  <td>是否逾期</td>
  <td>滞纳金</td>
  <td>操作</td>
  </tr>
  </thead>
  <tbody>
  <c:forEach items="${requestScope.borrows }" var="borrow">
  <tr>
  <td>${borrow.o_id }</td>
   <td>${borrow.b_id }</td>
    <td style="width:300px">${borrow.b_name }</td>
     <td>${borrow.r_id }</td>
      <td>${borrow.r_name }</td>
       <td>${borrow.out_time }</td>
        <td>${borrow.return_time }</td>
        <c:if test="${borrow.outDay==true }">
         <td>是</td>
        </c:if>
        <c:if test="${borrow.outDay ==false}">
         <td>否</td>
        </c:if>
          <td>${borrow.money }</td>
           <td><a href="jsp/book/bookr_list?bid=${borrow.b_id}&oid=${borrow.o_id }&rid=${borrow.r_id}&rmoney=${borrow.money }">归还</a></td>
           
  
  </tr>
  
  </c:forEach>

  </tbody>
  </table>
  </form>
  </div>
  </body>
   <script type="text/javascript" src="js/calendar.js"></script>
</html>
